package com.yachang.qym.usbhost.utils;

import com.github.nkzawa.socketio.client.Socket;

/**
 * Created by qinyuanmao on 16/3/23.
 */
public class API {

//    public static String serverUrl = "http://192.168.3.16:8080";
//    public static String serverUrl = "http://192.168.0.132";
    public static String serverUrl = "http://120.24.240.14:8080";
    //private static String serverUrl = "http://qin870752572.oicp.net:17197";

    public static Socket mSocket;
    public static boolean isNetRunning = true;

    public static String getLoginUrl(){
        String url = serverUrl + "/users/login";
        return url;
    }

    public static String getFirePoints(){
        String url = serverUrl + "/firepoint/point";
        return url;
    }

    public static String uploadLocation(){
        String url = serverUrl + "/outpolice/location";
        return url;
    }

    public static String uploadInfo(){
        String url = serverUrl + "/outpolice/edit";
        return url;
    }

    public static String getCallHelp(){
        String url = serverUrl + "/helper/findHelper";
        return url;
    }

    public static String getCallHelpModel(){
        String url = serverUrl + "/callhelp/getCallHelp";
        return url;
    }

    public static String exitOutPolice(){
        String url = serverUrl + "/outpolice/state";
        return url;
    }

    public static String callHelp(){
        String url = serverUrl + "/callhelp";
        return url;
    }

    public static String deleteHelper(){
        String url = serverUrl + "/helper/deleteOne";
        return url;
    }

    public static String getFireCompanyUrl(){
        String url = serverUrl + "/firecompany";
        return url;
    }

    public static String getFireCompanyUserUrl(){
        String url = serverUrl + "/users/firecompany";
        return url;
    }

    public static String exitCallHelp(){
        String url = serverUrl + "/callhelp/delete";
        return url;
    }

    public static String setHelper(){
        String url = serverUrl + "/callhelp/setHelper";
        return url;
    }

    public static String editHelpObj(){
        String url = serverUrl + "/callhelp/edit_other";
        return url;
    }

    public static String helperAddInfo(){
        String url = serverUrl + "/callhelp/helperAddOne";
        return url;
    }

    public static String getMakerUrl(){
        String url = serverUrl + "/maker";
        return url;
    }

    public static String getLocationUrl(){
        String url = serverUrl + "/location";
        return url;
    }

    public static String getUserUrl(){
        String url = serverUrl + "/users/firecompany";
        return url;
    }

    public static String getOutPoliceUrl(){
        String url = serverUrl + "/outpolice";
        return url;
    }

    public static String getSocketUrl(){
        String url = serverUrl + "/socket";
        return url;
    }

    public static String getFireCompany(){
        String url = serverUrl + "/firecompany/findOne";
        return url;
    }

    public static String getHelpUser(){
        String url = serverUrl + "/callhelp";
        return url;
    }

    public static String getApkUrl(){
        String url = serverUrl + "/apk";
        return url;
    }
}
